/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cegg.graph.dependency;

import cegg.graph.vertex.ReasonVertex;
import java.awt.Graphics;
import java.io.Serializable;

/**
 *
 * @author kumper
 */
public abstract class Dependency implements Serializable {

    private ReasonVertex from;
    private ReasonVertex to;

    public Dependency(final ReasonVertex from, final ReasonVertex to)
    {
        this.from = from;
        this.to = to;
    }

    public ReasonVertex getFrom() {
        return from;
    }

    public ReasonVertex getTo() {
        return to;
    }

    public abstract void paint(Graphics g);

}
